class CreateActsAsBlast < ActiveRecord::Migration
  def self.up
    create_table :blasts do |t|

      t.column :user_id, :integer
      t.column :blasted_id, :integer
      t.column :blasted_type, :string, :limit=> 20
      t.column :partial, :string, :limit=> 20      
      t.column :to, :string, :limit=> 50
      t.column :from, :string, :limit=> 50
      t.column :subject, :string, :limit=> 100
      t.column :message, :text
      t.column :url, :string
      t.column :created_at, :datetime
      t.column :sent_at, :datetime

    end
  end

  def self.down
    drop_table :blasts
  end
end
